package com.lktx.sso.admin.entity;

import com.mybatisflex.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

/** app分组 - sso_app */
@Data
@Table("sso_app")
public class SsoApp {
    /**appId*/
    @Id(value = "sso_app_id", keyType = KeyType.Auto)
    private Integer ssoAppId;
    /**app分组*/
    private Integer ssoAppGroupId;
    /**备注*/
    private String remark;
    /**创建时间*/
    @Column(onInsertValue = "now()")
    private LocalDateTime createTime;
    /**更新时间*/
    @Column(onUpdateValue = "now()", onInsertValue = "now()")
    private LocalDateTime updateTime;
    /**状态 0 启用 1禁用*/
    private Integer status;
    /**客户端ID*/
    private String clientId;
    /**客户端秘钥*/
    private String clientSecret;
    /**app名字*/
    private String appName;
    /**app图片地址*/
    private String appIcon;
    /**APP类型*/
    private String appType;
    /**
     * appUrl
     */
    private String appUrl;

    @RelationOneToOne(selfField = "ssoAppGroupId", targetField = "ssoAppGroupId")
    private SsoAppGroup ssoAppGroup;
}